﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="buyer_reportPayableStatistic.aspx.cs"
    Inherits="PeisongWeb.buyer_reportPayableStatistic" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>采购配送系统-应付款查询</title>
    <!--#include file="../global.inc" -->
    <script src="/app_common/scripts/jquery-latest.pack.js" type="text/javascript"></script>
    <script src="/fromjs/fillscreenFix.js" type="text/javascript"></script>
    <script type="text/javascript">
        function resetSrh() {
            document.getElementById("ddl_Year").value = "";
            document.getElementById("ddl_Month").value = "";
            document.getElementById("ddl_isPay").value = "";
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
        <uc1:headerV2 runat="server" ID="header1" />
        <div id="homemain">
            <div id="main">
                <div class="title">
                    <div class="title_text">
                        <ul>
                            <li class="color1">应付款统计</li>
                        </ul>
                    </div>
                </div>
                <div class="line_top">
                </div>
                <div id="mainmiddle">
                    <div class="column" runat="server" id="dv_payable">
                        <ul>
                            <li>您有<span runat="server" id="sp_Num" class="red">1</span>笔交易未结款。
                                <asp:LinkButton CausesValidation="false" ID="lbn_searchNotPay" Text="查看>" runat="server"
                                    OnClick="lbn_searchNotPay_Click">
                                </asp:LinkButton>
                            </li>
                            <li runat="server" id="li_day">距离结算日期还有<span runat="server" id="sp_Day" class="red"></span>天。
                                应付款总额为<span runat="server" id="sp_total" class="red"></span>元。</li>
                            <li runat="server" id="li_chao" visible="false">已超过结算日期，不能下订单！应付款总额为<span runat="server"
                                id="sp_total2" class="red"></span>元。</li>
                        </ul>
                    </div>
                    <div class="search">
                        <ul>
                            <li>年：
                                <asp:DropDownList CssClass="mode" runat="server" ID="ddl_Year">
                                </asp:DropDownList>
                            </li>
                            <li>月：
                                <asp:DropDownList runat="server" ID="ddl_Month">
                                </asp:DropDownList>
                            </li>
                            <li style="margin-left: 20px">是否支付
                                <asp:DropDownList runat="server" ID="ddl_isPay" CssClass="mode">
                                    <asp:ListItem Value="">请选择</asp:ListItem>
                                    <asp:ListItem Value="1">未支付</asp:ListItem>
                                    <asp:ListItem Value="2">已支付</asp:ListItem>
                                </asp:DropDownList>
                            </li>
                            <li style="margin-left: 20px">
                                <asp:Button CssClass="button_round" runat="server" ID="btn_select" Text="查 询" OnClick="btn_select_Click" />
                            </li>
                            <li>
                                <input class="button_round" type="button" value="重 置" id="btn_reset" onclick="resetSrh()" />
                            </li>
                        </ul>
                    </div>
                    <div class="list_content" style="padding-top: 10px">
                        <span>◆ 历史订单汇总表</span>
                    </div>
                    <div class="list_content">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr class="list_title">
                                <td width="20%">
                                    订单编号
                                </td>
                                <td width="20%">
                                    汇总总价
                                </td>
                                <td width="20%">
                                    下单日期
                                </td>
                                <td width="20%">
                                    支付状态
                                </td>
                                <td width="20%">
                                    查看
                                </td>
                            </tr>
                        </table>
                        <table border="0" cellspacing="0" cellpadding="0" class="list_border">
                            <asp:Repeater ID="rpt_list" runat="server">
                                <ItemTemplate>
                                    <tr class='<%# Container.ItemIndex%2==0?"":"tr_color"  %>'>
                                        <td width="20%">
                                            <%#Eval("orderNo") %>
                                        </td>
                                        <td width="20%">
                                            <%# string.Format("{0:F2}元", Eval("amount"))%>
                                        </td>
                                        <td width="20%">
                                            <%#Eval("orderDt") %>
                                        </td>
                                        <td>
                                            <%#Convert.ToInt32(Eval("paystatus")) == 1 ? "<font color='red'>未支付</font>" : "已支付"%>
                                        </td>
                                        <td width="20%">
                                            <a href="buyer_orderItemList.html?order=<%# Eval("orderid")%>">
                                                <img alt="" src="/app_common/images/cha.gif" /></a>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                    <div class="page" style="padding-top: 0px">
                        <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                            AlwaysShow="true" Width="98%" runat="server" PageSize="15" InvalidPageIndexErrorMessage="无效页码"
                            NumericButtonCount="5" PageIndexOutOfRangeErrorMessage="页码超出范围" ShowCustomInfoSection="Left"
                            CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 " CustomInfoTextAlign="Left"
                            HorizontalAlign="Right" OnPageChanged="AspNetPager1_PageChanged" NextPageText=">"
                            FirstPageText="<<首页" LastPageText="末页>>" PrevPageText="<" CssClass="paginator"
                            CurrentPageButtonClass="cpb" PageIndexBoxType="TextBox" 
                            ShowPageIndexBox="Never">
                        </webdiyer:AspNetPager>
                    </div>
                    <div class="list_content" style="padding-top: 20px; padding-bottom: 20px;">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr class="list_title">
                                <td width="20%" style="border-right: 2px solid #ffffff;">
                                    订单数量
                                </td>
                                <td width="20%" style="border-right: 2px solid #ffffff;">
                                    已付金额
                                </td>
                                <td width="20%" style="border-right: 2px solid #ffffff;">
                                    未付金额
                                </td>
                                <td width="20%" style="border-right: 2px solid #ffffff;">
                                    总金额
                                </td>
                            </tr>
                        </table>
                        <table border="0" cellspacing="0" cellpadding="0" class="list_border">
                            <tr>
                                <td width="20%">
                                    <asp:Literal runat="server" ID="lit_orderNum"></asp:Literal>
                                </td>
                                <td width="20%">
                                    <asp:Literal runat="server" ID="lit_payMoney"></asp:Literal>
                                </td>
                                <td width="20%">
                                    <asp:Literal runat="server" ID="lit_notPayMoney"></asp:Literal>
                                </td>
                                <td width="20%">
                                    <asp:Literal runat="server" ID="lit_total"></asp:Literal>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <uc1:footerV2 runat="server" ID="footer1" />
    </div>
    </form>
</body>
</html>
